package com.bw.lib_storage.db.entity


import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.Date

@Entity(tableName = "history")
data class History(
    @ColumnInfo(name = "id")
    @PrimaryKey(autoGenerate = true) //主键自增
    val id:Int,
    @ColumnInfo(name = "title")
    val title:String,
    @ColumnInfo(name = "content")
    val content:String,
    @ColumnInfo(name = "query_time")
    val queryTime: Date = Date()  // 新增时间字段，默认当前时间
)